home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIEditorBoxObject.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  96 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIEditorBoxObject.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIEditorBoxObject_h__
  6. #define __gen_nsIEditorBoxObject_h__
  7.  
  8.  
  9. #ifndef __gen_nsIBoxObject_h__
  10. #include "nsIBoxObject.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIEditor; /* forward declaration */
  18.  
  19. class nsIDocShell; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIEditorBoxObject */
  23. #define NS_IEDITORBOXOBJECT_IID_STR "14b3b669-3414-4548-aa03-edf257d889c8"
  24.  
  25. #define NS_IEDITORBOXOBJECT_IID \
  26.   {0x14b3b669, 0x3414, 0x4548, \
  27.     { 0xaa, 0x03, 0xed, 0xf2, 0x57, 0xd8, 0x89, 0xc8 }}
  28.  
  29. class NS_NO_VTABLE nsIEditorBoxObject : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEDITORBOXOBJECT_IID)
  33.  
  34.   /* readonly attribute nsIDocShell docShell; */
  35.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIEDITORBOXOBJECT \
  41.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIEDITORBOXOBJECT(_to) \
  45.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return _to GetDocShell(aDocShell); } 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIEDITORBOXOBJECT(_to) \
  49.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShell(aDocShell); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsEditorBoxObject : public nsIEditorBoxObject
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSIEDITORBOXOBJECT
  60.  
  61.   nsEditorBoxObject();
  62.  
  63. private:
  64.   ~nsEditorBoxObject();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsEditorBoxObject, nsIEditorBoxObject)
  72.  
  73. nsEditorBoxObject::nsEditorBoxObject()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsEditorBoxObject::~nsEditorBoxObject()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* readonly attribute nsIDocShell docShell; */
  84. NS_IMETHODIMP nsEditorBoxObject::GetDocShell(nsIDocShell * *aDocShell)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88.  
  89. /* End of implementation class template. */
  90. #endif
  91.  
  92. nsresult
  93. NS_NewEditorBoxObject(nsIBoxObject** aResult);
  94.  
  95. #endif /* __gen_nsIEditorBoxObject_h__ */
  96.